<template>
<div class="year">
    <h1>{{data.year}}年</h1>
    <Month v-for="(item,i) in data.listDays" :key="i" :data="data" :item="item"/>
</div>
</template>

<script>
import Month from "./Month"
export default {
    name: 'year',
    components: {
        Month
    },
    data() {
        return {
            data: {
                year: "2020",
                listDays: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
            }
        }
    }
}
</script>

<style lang="less" scoped>
.year {
  width:1200px;
  margin: 0 auto;
}
</style>
